using System;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Dispatcher;

namespace Se.Framework.Web.Mvc
{
    public class CustomHttpControllerActivator : IHttpControllerActivator
    {
        private readonly IHttpControllerActivator innerControllerActivator;

        public CustomHttpControllerActivator(IHttpControllerActivator innerControllerActivator)
        {
            this.innerControllerActivator = innerControllerActivator;
        }

        public IHttpController Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType)
        {
            return innerControllerActivator.Create(request, controllerDescriptor, controllerType);
        }
    }
}